/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package jni;

import java.io.File;

/**
 *
 * @author tandaica0612
 */
public class CallCFunction {
    static {
        File lib = new File("data/libHelloDynamicLibrary.so");      
        System.load(lib.getAbsolutePath());
    }
    private native static void printHello();

    public CallCFunction() {
    }
    public static void main(String args[]){
        printHello();
    }
    /*
     * De? bien dich. ra HelloWorldC.h thi` bat. terminal len va go~ vao` lenh. sau :
     * file HelloWorldC.h se~ duoc. sinh ra o? thu muc. noi terminal dang tro? toi'
     * javah -o HelloWorldC.h -jni -classpath /media/MyDocument/NetBeansProjects/J2SE/LearnJava/build/classes jni.CallCFunction
     */
}
/*
Hello from C ^^!
 * */